Save Attachment
AutomatR.Mail.SaveAttachment
The "Save Attachment" activity in AutomatR is designed to save attachments from a MailMessage object to a specified folder. This activity facilitates efficient attachment handling in email automation workflows, allowing users to organize and store attachments as needed.
Properties
Name | Description |
---|---|
Input | |
Mail Message | Specifies the MailMessage object from which the attachments are to be saved. Variables of type System.Net.Mail.MailMessage containing the email message with attachments. |
Save Location | Specifies the full path of the folder where the attachments of the mail message should be saved. String variables containing the destination folder path. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Save Attachment" activity. This optional delay can help handle synchronization issues. Integer variables containing the delay duration (e.g., 5 seconds). |
How to Use
- Drag and drop the "Save Attachment" activity onto the workflow.
- Configure the properties by specifying the MailMessage object containing attachments and the folder path to save attachments.
- Optionally, configure the display name for the activity.
- Execute the workflow to save attachments to the specified folder.
Example
Consider an example where the "Save Attachment" activity is used to save attachments from an email to a folder named "Attachments":
Save Attachment:
Display Name: "Save Email Attachments"
Mail Message: emailMessage
Save Location: "C:\Documents\Attachments"
In this example, the activity saves attachments from the specified email message (emailMessage
) to the "C:\Documents\Attachments" folder. Adjust the input properties according to the requirements of your workflow.